package com.lovo.service.impl;

import com.lovo.dao.UserDetailDAO;
import com.lovo.model.UserDetailDO;
import com.lovo.service.UserDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserDetailServiceImpl implements UserDetailService {
    @Resource
    private UserDetailDAO userDetailDAO;
    @Override
    public List findAll() {
        return userDetailDAO.findAll();
    }

    @Override
    public void save(UserDetailDO userDetailDO) {
        userDetailDAO.save(userDetailDO);
    }

    @Override
    public void delete(UserDetailDO userDetailDO) {
        userDetailDAO.delete(userDetailDO);
    }
}
